import Common from "../Common/Common";
import BaseUI from "../core/BaseUI";
import UIManager from "../core/UIManager";

const result = cc.Class({
    extends: BaseUI,

    properties: {
        // foo: {
        //     // ATTRIBUTES:
        //     default: null,        // The default value will be used only when the component attaching
        //                           // to a node for the first time
        //     type: cc.SpriteFrame, // optional, default is typeof default
        //     serializable: true,   // optional, default is true
        // },
        // bar: {
        //     get () {
        //         return this._bar;
        //     },
        //     set (value) {
        //         this._bar = value;
        //     }
        // },
    },

    // LIFE-CYCLE CALLBACKS:

    // onLoad () {},

    start() {

    },
    open() {
        this._super(arguments);
        // console.log("game");

    },

    close() {
        this._super(arguments);

    },


    /**点击返回大厅 */
    onClickBack(event) {
        this.close();
        
        UIManager.instance.hall.open()
    },

    /**点击再来一局 */
    onClickAgain(event) {
        this.close();
        UIManager.instance.game.open()
    },

    // update (dt) {},
});
export default result;
